from pydantic import BaseModel, Field
from typing import Optional

class WorkBenchTypeBase(BaseModel):
    benchTypeName: str = Field(..., description="工台类型名称")
    description: Optional[str] = Field(None, description="描述")

class WorkBenchTypeCreate(WorkBenchTypeBase):
    benchTypeId: str = Field(..., description="工台类型ID")

class WorkBenchTypeUpdate(BaseModel):
    benchTypeName: Optional[str] = None
    description: Optional[str] = None

class WorkBenchTypeDetail(WorkBenchTypeBase):
    benchTypeId: str
    createdBy: Optional[str] = Field(None, description="创建人(后端自动生成)")
    createdAt: Optional[str] = Field(None, description="创建时间(后端自动生成)")
    updatedBy: Optional[str] = Field(None, description="更新人(后端自动生成)")
    updatedAt: Optional[str] = Field(None, description="更新时间(后端自动生成)") 